<template>
    <div class="content-area">
        <div class="welcome-container">
            <h1 class="welcome-title">欢迎使用课程管理系统</h1>
            <div class="welcome-content">
                <el-row :gutter="20">
                    <el-col :span="8">
                        <el-card class="info-card">
                            <div class="card-content">
                                <i class="el-icon-user card-icon" style="color: #409eff; font-size: 40px;"></i>
                                <div class="card-info">
                                    <h3>学生总数</h3>
                                    <p class="card-number">1,234</p>
                                </div>
                            </div>
                        </el-card>
                    </el-col>

                    <el-col :span="8">
                        <el-card class="info-card">
                            <div class="card-content">
                                <i class="el-icon-s-custom card-icon" style="color: #67c23a; font-size: 40px;"></i>
                                <div class="card-info">
                                    <h3>教师总数</h3>
                                    <p class="card-number">89</p>
                                </div>
                            </div>
                        </el-card>
                    </el-col>

                    <el-col :span="8">
                        <el-card class="info-card">
                            <div class="card-content">
                                <i class="el-icon-document card-icon" style="color: #e6a23c; font-size: 40px;"></i>
                                <div class="card-info">
                                    <h3>课程总数</h3>
                                    <p class="card-number">156</p>
                                </div>
                            </div>
                        </el-card>
                    </el-col>
                </el-row>
            </div>
        </div>
    </div>
</template>

<style scoped>
.content-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f0f2f5;
}

.welcome-container {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

.welcome-title {
    font-size: 28px;
    color: #303133;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: 500;
}

.welcome-content {
    margin-top: 40px;
}

.info-card {
    margin-bottom: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #606266;
    font-weight: 500;
}

.card-number {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #303133;
}
</style>